package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.RoomInfoMapper;
import com.ruoyi.domain.RoomInfo;
import com.ruoyi.service.IRoomInfoService;

/**
 * RoomInfoService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class RoomInfoServiceImpl implements IRoomInfoService 
{
    @Autowired
    private RoomInfoMapper roomInfoMapper;

    /**
     * 查询RoomInfo
     * 
     * @param roomNumber RoomInfo主键
     * @return RoomInfo
     */
    @Override
    public RoomInfo selectRoomInfoByRoomNumber(Long roomNumber)
    {
        return roomInfoMapper.selectRoomInfoByRoomNumber(roomNumber);
    }

    /**
     * 查询RoomInfo列表
     * 
     * @param roomInfo RoomInfo
     * @return RoomInfo
     */
    @Override
    public List<RoomInfo> selectRoomInfoList(RoomInfo roomInfo)
    {
        return roomInfoMapper.selectRoomInfoList(roomInfo);
    }

    /**
     * 新增RoomInfo
     * 
     * @param roomInfo RoomInfo
     * @return 结果
     */
    @Override
    public int insertRoomInfo(RoomInfo roomInfo)
    {
        return roomInfoMapper.insertRoomInfo(roomInfo);
    }

    /**
     * 修改RoomInfo
     * 
     * @param roomInfo RoomInfo
     * @return 结果
     */
    @Override
    public int updateRoomInfo(RoomInfo roomInfo)
    {
        return roomInfoMapper.updateRoomInfo(roomInfo);
    }

    /**
     * 批量删除RoomInfo
     * 
     * @param roomNumbers 需要删除的RoomInfo主键
     * @return 结果
     */
    @Override
    public int deleteRoomInfoByRoomNumbers(Long[] roomNumbers)
    {
        return roomInfoMapper.deleteRoomInfoByRoomNumbers(roomNumbers);
    }

    /**
     * 删除RoomInfo信息
     * 
     * @param roomNumber RoomInfo主键
     * @return 结果
     */
    @Override
    public int deleteRoomInfoByRoomNumber(Long roomNumber)
    {
        return roomInfoMapper.deleteRoomInfoByRoomNumber(roomNumber);
    }
}
